package cl.sodexo.com.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import cl.sodexo.com.dto.Perfil;
import cl.sodexo.com.dto.Usuario;
import cl.sodexo.com.utils.FechaUtils;

public class LoginForm extends ActionForm{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Usuario user;
	private String	fechaHoy;
	
	public void reset(ActionMapping actionMapping, HttpServletRequest request){
		this.user		= new Usuario();
		this.user.setPerfil(new Perfil());
		this.user.setNombre("");
		this.fechaHoy	= FechaUtils.fechaDeHoy();
	}

    public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest request) {
        ActionErrors errs = new ActionErrors();
        return errs;
    }
    
	public String getFechaHoy() {
		return fechaHoy;
	}

	public void setFechaHoy(String fechaHoy) {
		this.fechaHoy = fechaHoy;
	}

	public Usuario getUser() {
		return user;
	}
	public void setUser(Usuario user) {
		this.user = user;
	}

}
